﻿using BulkUploadGovernanceFiles.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

namespace BulkUploadGovernanceFiles.MongoSpecification
{
    public class InsightByIdSpecification : CompositeSpecification<Insight>
    {
        private readonly Expression<Func<Insight, bool>> _specExpression;

        public InsightByIdSpecification(Guid id)
        {
            _specExpression = p => p.Id == id;
        }

        public override Expression<Func<Insight, bool>> SpecExpression
        {
            get { return _specExpression; }
        }
    }
}
